|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.boaframework.OutcomeSpace
negotiator.boaframework.SortedOutcomeSpace
public class SortedOutcomeSpace
This class is an OutcomeSpace but with a sorted list of BidDetails based on the utility Methods have been optimized to work with a sorted list. Useful if someone wants to quickly implement an agent.
| Field Summary |
|---|
| Fields inherited from class negotiator.boaframework.OutcomeSpace |
|---|
allBids, utilitySpace |
| Constructor Summary | |
|---|---|
SortedOutcomeSpace(UtilitySpace utilSpace)
Instantiates a SortedOutcomeSpace: an enumeration of all possible bids in the domain which can be efficiently searched using the provided methods. |
|
| Method Summary | |
|---|---|
BidDetails |
getBidNearUtility(double utility)
Gets a BidDetails which is close to the utility |
java.util.List<BidDetails> |
getBidsinRange(Range r)
gets a list of BidDetails that have a utility within the range |
int |
getIndexOfBidNearUtility(double utility)
Gets a BidDetails which is close to the utility |
BidDetails |
getMaxBidPossible()
|
BidDetails |
getMinBidPossible()
|
int |
searchIndexWith(double value)
Binary search of a BidDetails with a particular value if there is no BidDetails with the exact value gives the last index because this is the closest BidDetails to the value |
| Methods inherited from class negotiator.boaframework.OutcomeSpace |
|---|
generateAllBids, getAllOutcomes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedOutcomeSpace(UtilitySpace utilSpace)
utilSpace - utilityspace of the agent.| Method Detail |
|---|
public java.util.List<BidDetails> getBidsinRange(Range r)
getBidsinRange in class OutcomeSpacer -
public BidDetails getBidNearUtility(double utility)
getBidNearUtility in class OutcomeSpaceutility -
public int getIndexOfBidNearUtility(double utility)
getIndexOfBidNearUtility in class OutcomeSpaceutility -
public int searchIndexWith(double value)
value -
public BidDetails getMaxBidPossible()
getMaxBidPossible in class OutcomeSpacepublic BidDetails getMinBidPossible()
getMinBidPossible in class OutcomeSpace
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||